<html>
<head><meta charset="utf-8"><title>Jury-rigging &quot;arm64e&quot; support · t-compiler/arm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/index.html">t-compiler/arm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Jury-rigging.20.22arm64e.22.20support.html">Jury-rigging &quot;arm64e&quot; support</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="202943487"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Jury-rigging%20%22arm64e%22%20support/near/202943487" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Jury-rigging.20.22arm64e.22.20support.html#202943487">(Jul 05 2020 at 23:50)</a>:</h4>
<p>Hello, I have made some attempts in the past to allow Rust to compile for ARM64E (ARMv8.3 + PAC) targets by creating a new target (<code>aarch64-apple-ios-armv83</code>, as otherwise cc-rs freaks out)</p>
<p>However, libstd and friends end up being compiled with <code>-arch arm64</code>, causing an error during linking.</p>
<p><a href="https://github.com/apple/llvm-project/tree/apple/stable/20200108">https://github.com/apple/llvm-project/tree/apple/stable/20200108</a></p>



<a name="202943548"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Jury-rigging%20%22arm64e%22%20support/near/202943548" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Jury-rigging.20.22arm64e.22.20support.html#202943548">(Jul 05 2020 at 23:52)</a>:</h4>
<p><span class="user-mention silent" data-user-id="312033">aspen</span> <a href="#narrow/stream/242906-t-compiler.2Farm/topic/Jury-rigging.20.22arm64e.22.20support/near/202943487">said</a>:</p>
<blockquote>
<p>However, libstd and friends end up being compiled with <code>-arch arm64</code>, causing an error during linking.</p>
</blockquote>
<p>What is the appropriate argument?</p>
<blockquote>
<p><a href="https://github.com/apple/llvm-project/tree/apple/stable/20200108">https://github.com/apple/llvm-project/tree/apple/stable/20200108</a></p>
</blockquote>
<p>I'm not sure what this link is attempting to show.</p>



<a name="202943554"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Jury-rigging%20%22arm64e%22%20support/near/202943554" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Jury-rigging.20.22arm64e.22.20support.html#202943554">(Jul 05 2020 at 23:52)</a>:</h4>
<p>The link is just a link to the Apple LLVM.</p>
<p>The appropiate argument is <code>-arch arm64e</code></p>



<a name="202943623"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Jury-rigging%20%22arm64e%22%20support/near/202943623" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Jury-rigging.20.22arm64e.22.20support.html#202943623">(Jul 05 2020 at 23:54)</a>:</h4>
<blockquote>
<p>The link is just a link to the Apple LLVM.</p>
</blockquote>
<p>But why?</p>
<blockquote>
<p>The appropiate argument is <code>-arch arm64e</code></p>
</blockquote>
<p>Thanks!</p>



<a name="202943634"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Jury-rigging%20%22arm64e%22%20support/near/202943634" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> aspen <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Jury-rigging.20.22arm64e.22.20support.html#202943634">(Jul 05 2020 at 23:55)</a>:</h4>
<p>Why? Because I DID say I was jury-rigging the Apple LLVM onto rustc.</p>
<p>The Apple LLVM is the only LLVM that SUPPORTS <code>-arch arm64e</code> or pointer authentication.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>